<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<script>
    var arr = [
        {name: '保护站', x: '长江'},
        {name: '保护站', x: '黄河'},
        {name: '保护站', x: '大桥'},
        {name: '保护站', x: '彩虹'},
        {name: '保护站', x: '长江'},
        {name: '保护站', x: '黄河'},
        {name: '保护站', x: '彩虹'},
    ]

    var newArr = [arr[0]];
    for (var i = 0; i < arr.length; i++) {
        var flag = true;
        for (var j = 0; j < newArr.length; j++) {
            if (newArr[j].x == arr[i].x) flag = false;
        }
        if (flag)
            newArr.push(arr[i]);
    }

    console.log(newArr);
</script>
</body>
</html>